package com.ksm.zyz.common.constant;

import java.math.BigDecimal;

public class GlobalConstant {
	
	
	//接口返回状态
	public static final String STATUS 			= "status";	//返回状态
	public static final String MSG 				= "msg";	//返回信息
	public static final String DATASOURCE 		= "data";	//返回数据
	
	//发送对象
	public static final String VISITOR_FROM 	= "0"; 		//来自游客
	public static final String ZHILIAO_FROM 	= "1";		//来自知了
	
	//操作状态
	public static final String SUCCESS 			= "success";//成功
	public static final String FAIL 			= "fail";	//失败
	
	//启用状态
	public static final String DISABLE = "0"; 	// 禁用
	public static final String ENABLE = "1"; 	// 启用
	
	//聊天倒计时状态
	public static final String STOP_TALK = "0"; 	// 未开始倒计时
	public static final String START_TALK = "1"; 	// 开启倒计时
	
	//认证状态
	public static final String UNAUTHERIZED 	= "0";  	//未认证状态
	public static final String AUTHERIZED_AUDIT = "1"; 		//认证审核中
	public static final String AUTHERIZED 		= "2"; 		//已认证状态
	public static final String AUTHERIZED_FAIL 	= "3"; 		//认证失败
	
	//聊天状态
	public static final String ON_TALK_LINE 	= "0";		//聊天中
	public static final String OFF_TALK_LINE 	= "1";		//结束聊天
	
	//聊天券使用状态
	public static final String LTJ_UNUSED 		= "0";		//未使用
	public static final String LTJ_USED 		= "1";		//已使用
	public static final String LTJ_GIVEN 		= "2";		//已赠送
	
	//抵扣卷使用状态
	public static final String DKJ_UNUSED 		= "0";		//未使用
	public static final String DKJ_USED 		= "1";		//已使用
	
	//聊天券类型
	//public static final String PAY_ROLL		= "0";		//付费卷
	//public static final String SHARE_ROLL		= "1";		//分享卷
	
	//聊天券类型
	public static final String CARD_BY_BUY 		= "0";		//自己购买
	public static final String CARD_BY_SYSTEM	= "1";		//系统赠送
	public static final String CARD_BY_INTEGRAL	= "2";		//积分兑换
	public static final String CARD_BY_INVITE	= "3";		//拉新奖励-邀请好友首次奖励-同一用户仅限一张
	public static final String CARD_BY_BEINVITED= "4";		//被邀请-获得
	
	
	//分享状态
	public static final String END_SHARE		= "0";		//已分享
	public static final String NOT_SHARE		= "1";		//未分享
	
	//领取状态
	public static final String TAKE_WAIT		= "0";		//待领取
	public static final String TAKE_END			= "1";		//已领完
	
	//提现状态
	public static final String WALLET_INCOME	= "0";		//收入
	public static final String WALLET_EXPEND 	= "1";		//提现
	
	//收支状态
	public static final String WAIT_WITHDRAW 	= "0";		//待提现
	public static final String END_WITHDRAW 	= "1";		//已提现
	
	//带车出行状态
	public static final String WITHOUT_CAR		= "0";		//不带车出行
	public static final String TAKE_CAR			= "1";		//带车出行
	
	//接单日设置
	public static final String HAVE_NOT_ORDER	= "0";		//不接单
	public static final String HAVE_ORDER		= "1";		//已接单
	
	//消息状态
	public static final String UN_READ 			= "0";		//未读
	public static final String HAS_READ 		= "1";		//已读
	
	//订单结算状态
	public static final String UN_SETTLEMENT 	= "0";		//未结算
	public static final String SETTLEMENT		= "1";		//已结算
	
	//知了预约回复状态(OptionState)
	public static final String WAITAREE 		= "0";		//待同意
	public static final String DISAGREE 		= "1";		//不同意
	public static final String AGREE 			= "2";		//同意
	public static final String PAY_YES 			= "3";		//已付款
	
	//订单支付方式
	public static final String PAY_ALIPAY 		= "0"; 		//支付宝支付
	public static final String PAY_WEIXIN 		= "1"; 		//微信支付
	public static final String PAY_LIANLIAN 	= "2"; 		//连连支付
	
	//聊天订单状态
	public static final String TK_PAY_NO 		= "0";		//待付款
	public static final String TK_PAY_YES 		= "1";		//已付款
	//public static final String TK_ORDER_END 	= "2";		//已结束
	
	//知了预约订单状态
	public static final String ZL_PAY_NO 		= "0";		//待付款
	public static final String ZL_PAY_YES 		= "1";		//已付款(待出行)
	public static final String ZL_REFUNDING 	= "2";		//退款中
	public static final String ZL_REFUNDED 		= "3";		//已退款
	public static final String ZL_ON_TRAVEL 	= "4";		//出行中(行程中)
	public static final String ZL_END_TRAVEL 	= "5";		//已结束
	public static final String ZL_EVALUATED 	= "6";		//已评价
	
	//聊天券订单状态
	public static final String TC_PAY_NO 		= "0";		//待付款
	public static final String TC_PAY_YES 		= "1";		//已付款
	
	//订单消息类型
	public static final String MSG_TK			= "0";		//聊天消息
	public static final String MSG_ZL			= "1";		//预约消息
	public static final String MSG_TC			= "2";		//聊天券消息
	
	//极光推送消息类型
	public static final String MSG_SYS 			= "0"; 		//系统消息
	public static final String MSG_ORDER 		= "1"; 		//订单消息
	public static final String MSG_OPPOINTMENT	= "2"; 		//预约消息
	//极光推送消息类型-以下6个暂未使用
	public static final String MSG_PAY_TK_SUC	= "TK_SUC"; //聊天订单付款成功
	public static final String MSG_PAY_TK_FAIL	= "TK_FAIL";//聊天订单付款失败
	public static final String MSG_PAY_ZL_SUC	= "ZL_SUC"; //知了预约订单付款成功
	public static final String MSG_PAY_ZL_FAIL	= "ZL_FAIL";//知了预约订单付款失败
	public static final String MSG_PAY_TC_SUC	= "TC_SUC"; //聊天券订单付款成功
	public static final String MSG_PAY_TC_FAIL	= "TC_FAIL";//聊天券订单付款失败
	
	//订单类别代码（用于生成订单号）
	public static final int TALK_ORDER 			= 1; 		//聊一聊订单
	public static final String TALK_S_ORDER 	= "TK"; 	//聊一聊订单串
	public static final int ZHILIAO_ORDER 		= 2; 		//知了订单
	public static final String ZHILIAO_S_ORDER 	= "ZL"; 	//知了订单串
	public static final int TALKCARD_ORDER 		= 3; 		//聊天券订单
	public static final String TALKCARD_S_ORDER	= "TC"; 	//聊天券订单串
	
	//系统消息类型
	public static final String SYSMSG_COMMON		= "0"; 	//普通消息
	public static final String SYSMSG_I_PASS 		= "1"; 	//个人认证通过
	public static final String SYSMSG_I_NOPASS 		= "2"; 	//个人认证未通过
	public static final String SYSMSG_C_PASS 		= "3"; 	//带车认证通过
	public static final String SYSMSG_C_NOPASS 		= "4"; 	//带车认证未通过
	public static final String SYSMSG_TALKCARD		= "5"; 	//派送聊天券
	public static final String SYSMSG_I_INTEGRAL	= "6"; 	//获赠积分
	
	//抵扣额分享总金额
	public static final BigDecimal SHAREMONEY	= BigDecimal.TEN;
	
	//聊天券单张价格
	public static final int PRICE_TALKCARD		= 5;
	
	//带车服务默认费用
	public static final BigDecimal PRICE_TAKE_CAR	= BigDecimal.valueOf(100);
	
	//知了默认提成比率
	public static final BigDecimal PRICE_PERCENTAGE	= BigDecimal.valueOf(0.8);
}
